//
//  CMLocalize.h
//  Pods
//
//  Created by Roffa Zhou on 2021/12/28.
//

#ifndef CMLocalize_h
#define CMLocalize_h

#import "ILLanguageManager.h"
#import "ILLanguageModel.h"


//MARK: - 兼容原项目产生的头文件，后续有新国际化，请移步到ILLocalizeKit

//使用
#define ILStringK(key) NSLocalizedStringFromTable(key, @"CMLocalizable", nil)//[[NSBundle bundleWithPath:[[NSBundle bundleForClass:[self class]] pathForResource:[NSString stringWithFormat:@"%@",[[ILLanguageManager sharedManager] convertLanguageToInternational:nil]] ofType:@"lproj"]] localizedStringForKey:(key) value:nil table:@"CMLocalizable"]
// 当key不存在时，页面将显示comment内容
#define ILStringKC(key, comment)    NSLocalizedStringFromTable(key, @"CMLocalizable", comment)//  [[NSBundle bundleWithPath:[[NSBundle bundleForClass:[self class]] pathForResource:[NSString stringWithFormat:@"%@",[ILLanguageManager sharedManager].currentLanguage.systemName] ofType:@"lproj"]] localizedStringForKey:(key) value:comment table:@"CMLocalizable"]
//#define ILStringK(key)                NSLocalizedStringFromTable((key), @"ILLocalizable", nil)
//#define ILStringKC(key, comment)      NSLocalizedStringFromTable((key), @"ILLocalizable", comment)
//#define ILStringKD(key, defaultValue) [NSBundle.mainBundle localizedStringForKey:(key) value:(defaultValue) table:@"ILLocalizable"]

#define ILCameraString(key, comment)     ILStringK(key)



#endif /* CMLocalize_h */
